/**
 * ourcarlife
 */
package com.whilefor.runner.modules.runner.entity;

import com.whilefor.runner.modules.sys.entity.Office;
import com.whilefor.runner.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import com.whilefor.runner.modules.sys.entity.Area;

import com.whilefor.runner.common.persistence.DataEntity;

/**
 * 商家管理Entity
 * @author lins
 * @version 2016-04
 */
public class RunnerSeller extends DataEntity<RunnerSeller> {
	
	private static final long serialVersionUID = 1L;
	private Office office;		// 归属部门
	private User user;		// 账号id
	private String logoPath;		// 商家logo
	private Area area;		// 归属区域
	private String sellerName;		// 名称
	private String sellerTel;		// 联系电话
	private String sellerStreet;		// 街道
	private String sellerLon;		// 经度
	private String sellerLat;		// 维度
	
	public RunnerSeller() {
		super();
	}

	public RunnerSeller(String id){
		super(id);
	}

	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=1000, message="商家logo长度必须介于 0 和 1000 之间")
	public String getLogoPath() {
		return logoPath;
	}

	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}
	
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getSellerName() {
		return sellerName;
	}

	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}
	
	@Length(min=0, max=20, message="联系电话长度必须介于 0 和 20 之间")
	public String getSellerTel() {
		return sellerTel;
	}

	public void setSellerTel(String sellerTel) {
		this.sellerTel = sellerTel;
	}
	
	@Length(min=0, max=1000, message="街道长度必须介于 0 和 1000 之间")
	public String getSellerStreet() {
		return sellerStreet;
	}

	public void setSellerStreet(String sellerStreet) {
		this.sellerStreet = sellerStreet;
	}
	
	public String getSellerLon() {
		return sellerLon;
	}

	public void setSellerLon(String sellerLon) {
		this.sellerLon = sellerLon;
	}
	
	public String getSellerLat() {
		return sellerLat;
	}

	public void setSellerLat(String sellerLat) {
		this.sellerLat = sellerLat;
	}
	
}